package com.jushu.storbox.service;

import java.util.List;

import android.content.Context;

import com.jushu.storbox.entities.TeamSpaceInfo;
import com.jushu.storbox.vo.PagedList;
import com.huawei.sharedrive.sdk.android.exception.ClientException;
import com.huawei.sharedrive.sdk.android.modelV2.request.CreateTeamSpaceRequest;
import com.huawei.sharedrive.sdk.android.modelV2.request.GetTeamSpaceRequest;
import com.huawei.sharedrive.sdk.android.modelV2.request.MyTeamSpaceRequest;
import com.huawei.sharedrive.sdk.android.modelV2.request.UpdataTeamSpaceRequest;

public interface ITeamSpaceService {

	public TeamSpaceInfo createTeamSpaceFromServer(Context context,
			CreateTeamSpaceRequest request) throws ClientException;

	public TeamSpaceInfo updateTeamSpaceFromServer(Context context,
			UpdataTeamSpaceRequest request) throws ClientException;

	public String deleteTeamSpaceFromServer(Context context,GetTeamSpaceRequest request) throws ClientException;

	public TeamSpaceInfo getTeamSpaceMessageFromServer(Context context,
			GetTeamSpaceRequest request) throws ClientException;

	public TeamSpaceInfo getTeamSpaceMessageFromLocal(Context context,
			GetTeamSpaceRequest request) throws ClientException;

	public PagedList<TeamSpaceInfo> getTeamSpaceListFromServer(Context context,
			MyTeamSpaceRequest request) throws ClientException;

	public List<TeamSpaceInfo> getTeamSpaceListFromLocal(Context context) throws ClientException;

}
